package com.example.blogspring.utils;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/5/22 5:11
 */
public class DateUtils {
    public static String format(LocalDateTime localDateTime) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        return simpleDateFormat.format(localDateTime);
    }
}
